<template>
  <div id="ranking-board">
    <div class="ranking-board-title">耗水前十单位</div>
    <dv-scroll-ranking-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'RankingBoard',
  data () {
    return {
      config: {
        data: [
          {
            name: 'AB公司',
            value: 321
          },
          {
            name: 'AC公司',
            value: 423
          },
          {
            name: 'BC公司',
            value: 356
          },
          {
            name: 'CD公司',
            value: 301
          },
          {
            name: 'AE公司',
            value: 388
          },
          {
            name: 'BF公司',
            value: 402
          },
          {
            name: 'CD公司',
            value: 456
          },
          {
            name: 'EF公司',
            value: 500
          },
          {
            name: 'FG公司',
            value: 486
          },
          {
            name: 'TF公司',
            value: 398
          }
        ],
        rowNum: 10
      }
    }
  }
}
</script>

<style lang="less">
#ranking-board {
  width: 20%;
  box-shadow: 0 0 3px blue;
  display: flex;
  flex-direction: column;
  background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, .5);
  box-sizing: border-box;
  padding: 0px 30px;

  .ranking-board-title {
    font-weight: bold;
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 20px;
  }

  .dv-scroll-ranking-board {
    flex: 1;
  }
}
</style>
